<?php
$a=array(111,"222",'name'=>'张三','age'=>18,1000=>333,"444");
for($i=0;$i<6;++$i){
    echo $i,'.',  $a[$i],"\n";
}
//
echo "显示数组\n";
foreach($a as $k=>$v){
    echo $k,':',$v,"\n";
}
echo"仅显示value的值:\n";
foreach ($a as $value){
    echo $value,"\n";
}